package com.ruoyi.merchant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * article对象 t_article
 * 
 * @author juchengxin
 * @date 2024-07-03
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章作者 */
    @Excel(name = "文章作者")
    private String author;

    /** 写作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "写作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date writingTime;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgUrl;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 文章状态 0 停用  1 启用 */
    @Excel(name = "文章状态 0 停用  1 启用")
    private Integer status;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String sysOrgCode;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long orderNum;

    /** 应用类别 0 用户端 1 消费端 */
    @Excel(name = "应用类别 0 用户端 1 消费端")
    private Integer appType;

    /** 文章类型 */
    @Excel(name = "文章类型")
    private Integer type;

    /** 删除  0 未删除  1 删除 */
    @Excel(name = "删除  0 未删除  1 删除")
    private Integer del;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setWritingTime(Date writingTime) 
    {
        this.writingTime = writingTime;
    }

    public Date getWritingTime() 
    {
        return writingTime;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSysOrgCode(String sysOrgCode) 
    {
        this.sysOrgCode = sysOrgCode;
    }

    public String getSysOrgCode() 
    {
        return sysOrgCode;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setAppType(Integer appType) 
    {
        this.appType = appType;
    }

    public Integer getAppType() 
    {
        return appType;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("author", getAuthor())
            .append("writingTime", getWritingTime())
            .append("imgUrl", getImgUrl())
            .append("content", getContent())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("sysOrgCode", getSysOrgCode())
            .append("orderNum", getOrderNum())
            .append("appType", getAppType())
            .append("type", getType())
            .append("del", getDel())
            .toString();
    }
}
